//
//  BuildingBasicInfo.m
//  3DModelCollector
//
//  Created by Jing Zhang on 7/17/12.
//  Copyright (c) 2012 Tencent. All rights reserved.
//

#import "BuildingBasicInfo.h"

@implementation BuildingBasicInfo

@synthesize UID = _UID;
@synthesize name = _name;
@synthesize address = _address;
@synthesize type = _type;
@synthesize division = _division;
@synthesize businessRegion = _businessRegion;
@synthesize remark = _remark;
@synthesize lastModifieTime = _lastModifieTime;

- (void)dealloc {
    
    self.name = nil;
    self.address = nil;
    self.division = nil;
    self.businessRegion = nil;
    self.remark = nil;
    self.lastModifieTime = nil;
    
    [super dealloc];
}

- (id)copyWithZone:(NSZone *)zone {
    
    BuildingBasicInfo* newBasicInfo = [[[self class] allocWithZone:zone] init];
    newBasicInfo.UID = self.UID;
    newBasicInfo.name = [self.name copy];
    newBasicInfo.address = [self.address copy];
    newBasicInfo.type = self.type;
    newBasicInfo.division = [self.division copy];
    newBasicInfo.businessRegion = [self.businessRegion copy];
    newBasicInfo.remark = [self.remark copy];
    newBasicInfo.lastModifieTime = [NSDate date];   // 使用当前时间
    
    return newBasicInfo;
}

@end
